import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index';
import http from 'axios'
// import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
import { Button, 
         Select, 
         Radio,
         Container,
         Aside,
         Header,
         Main,
         Menu,
         MenuItem,
         MenuItemGroup,
         Submenu,
         Dropdown,
         DropdownItem,
         DropdownMenu,
         Row,
         Col,
         Card,
        Table,
        TableColumn,
        Tag} from 'element-ui';

Vue.config.productionTip = false
// Vue.use(ElementUI)
// Vue.component(Button.name, Button);
Vue.use(Button)
Vue.component(Select.name, Select);
Vue.component(Radio.name, Radio);
Vue.use(Container)
Vue.use(Aside)
Vue.use(Header)
Vue.use(Main)
Vue.use(Menu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)
Vue.use(Submenu)
Vue.use(Dropdown)
Vue.use(DropdownItem)
Vue.use(DropdownMenu)
Vue.use(Row)
Vue.use(Col)
Vue.use(Card)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Tag)
Vue.prototype.$http = http
// @可以直接找到src
if(process.env.NODE_ENV === 'development') require('@/api/mock')
new Vue({
  el:'#app',
  router,
  render: h => h(App),
  store
})